home *** CD-ROM | disk | FTP | other *** search
- DSU - Disk Space Utilization
-
- Usage: DSU filespec
- Where the filespec may contain a drive letter. Paths are not supported -
- DSU operates on the current directory only. Filenames may include '?' and
- '*' wildcards.
-
- Function:
- DSU lists each file that fits the filespec and shows its size in bytes
- and clusters. The cluster count is shown for each of the common cluster
- sizes as follows:
-
- 512 bytes/cluster single sided diskettes
- 1024 bytes/cluster double sided diskettes
- 2048 bytes/cluster PC-AT hard disk
- 4096 bytes/cluster PC-XT hard disk
-
- After the file list, DSU shows the disk space utilization in percent. It
- also displays drive statistics for the currently logged drive. These
- statistics indicate the number of free clusters, sectors, and bytes on the
- disk.
-
- Purpose:
- DSU is useful when copying files from one disk to another. Although DOS
- keeps track of file sizes in bytes, it allocates space on disks in
- allocation units called clusters. The size of a cluster varies, but is
- usually some multiple of the sector size (512 bytes).
-
- If you copy a one byte file to a double sided floppy and run a DIRectory
- listing, DOS reports a file size of one byte - which is correct. What DOS
- doesn't tell you is that the file has been allocated a full 1024 byte
- cluster of space on the disk. Try adding up the file sizes on a full disk
- - you'll see they don't add up to the maximum 360kb.
-
- DSU's cluster count indicates the actual amount of space used by the file.
- The byte count shows the size of the file, but the cluster count shows the
- amount of disk space actually required. The space utilization figure
- shows what percent of the space is actually used by the file.
-
-
- Example:
- After entering DSU *.doc, the program responds:
-
-
- Disk Space Utilization (DSU) (C) 1985, Sheepware Associates
-
- Number of Clusters Allocated, by Cluster Size
- ----------------------------------------------
- File Name Size 512 b/c 1024 b/c 2028 b/c 4096 b/c
- ------------- ----- ------- -------- -------- --------
- APPENDIX.DOC 7424 15 8 4 2
- ATREQ.DOC 2560 6 3 2 1
- CB0301.DOC 1152 3 2 1 1
- CS0208.DOC 1280 3 2 1 1
- CSOURCE.DOC 2304 5 3 2 1
- CSOURCE2.DOC 1536 4 2 1 1
- EEODATA.DOC 3328 7 4 2 1
- ENTIN.DOC 3584 8 4 2 1
- FOCID.DOC 1024 3 2 1 1
- HM0121.DOC 1280 3 2 1 1
- HM0318.DOC 512 2 1 1 1
- HM0411.DOC 3328 7 4 2 1
- IBBSSYS.DOC 46080 91 46 23 12
- IBBSUSER.DOC 14336 29 15 8 4
- INTLABS.DOC 12288 25 13 7 4
- JC0206.DOC 1024 3 2 1 1
- JH0306.DOC 1664 4 2 1 1
- JOBVSPOS.DOC 3584 8 4 2 1
- MD0122.DOC 1024 3 2 1 1
- OVERVIEW.DOC 1664 4 2 1 1
- PCWORLD.DOC 896 2 1 1 1
- REG-SLS.DOC 3712 8 4 2 1
- REQDFLDS.DOC 1792 4 2 1 1
- TABSTRUC.DOC 2688 6 3 2 1
- TAXDATA.DOC 1280 3 2 1 1
- UTILS.DOC 6528 13 7 4 2
- WORKBOOK.DOC 3840 8 4 2 1
- HM0415.DOC 1152 3 2 1 1
- HM0416.DOC 768 2 1 1 1
-
- ** 29 files 133632 282 149 79 48
- ** space usage (%) 92.6 87.6 82.6 68.0
-
-
- Statistics for current drive -------------------------------------
- 1789952 Bytes free 21309440 Bytes total
- 3496 Sectors free 41620 Sectors total
- 874 Clusters free 10405 Clusters total
-
- 4 Sectors/cluster at 512 Bytes/sector giving 2048 Bytes/cluster
-
- --------
- The above indicates there are 29 files ending with a DOC extension, they
- use 133632 bytes, and (on my PC-AT disk) they require 79 clusters. Of the
- 79 clusters allocated, 82.6% of the space is used by the files, with the
- rest unused filler.
-
- If I wanted to back up these files on a double sided floppy, they would
- require 149 clusters. To see if that much space was available, I would
- change to a floppy as my currently logged drive and run DSU again. The
- statistics report at the bottom would tell me how many clusters were
- available.
-